<?php
// +----------------------------------------------------------------------
// | ThinkCMF [ WE CAN DO IT MORE SIMPLE ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013-2017 http://www.thinkcmf.com All rights reserved.
// +----------------------------------------------------------------------
// | Author: Dean <zxxjjforever@163.com>
// +----------------------------------------------------------------------
namespace api\home\controller;

use think\Db;
use think\Validate;
use EasyWeChat\Factory;
use cmf\controller\RestBaseController;
use think\Config;
class MessageController extends RestBaseController
{

   /**
    * [wach_back 消息推送通知]
    * @return [type] [description]
    */
    public function wach_back(){
        
    }
    /**
     * [wach_authorize 授权事件接收URL]
     * @return [type] [description]
     */
    public function wach_authorize(){
        file_put_contents('../../wxcode.txt',serialize(input()));
        $file_in = file_get_contents('php://input');
        file_put_contents('../../wxcodexml.xml',$file_in);
        echo 'success';
    }
}
